export interface DrugResponse {
     code: string;
     msg: string;
     timestamp: number;
     data: DrugTable;
     ok: boolean;
};

export interface DrugTable {
     totalCount: number;
     list: Array<DrugInfo>;
};

export interface DrugInfo {
     drugId?: number;
     genericName?:string;
     guige?:any;
     stockQtyText?:string;
     drugCategory?: string;
     packUnitText?:string;
     
     minPackUnitText?:string;
     drugDosageUnitText?:string;
     drugDosageUnit?:string
     drugName?: string;
     mfrId?: number;
     mfrName?: string;
     drugDosage?: number;
     dosageUnit?: string;
     minPackQty?: number;
     minPackUnit?: string;
     packUnit?: string;
     price?: any;
     isSplit?: string;
     stockQty?: number;
     stockUnit?: string;
     minStockQty?: number;
     minStockUnit?: string;
     nearestExpiryDate?: Date;
};

export interface DrugForm {
     drugId?:any;
     storageId?:any
     drugName?:any
     drugCategory?:any
     pageNo?:number
     pageSize?:number
};


//详情
export interface ProfileaddResponse {
     code: string;
     msg: string;
     timestamp: number;
     data: Profileadd;
     ok: boolean;
};


export interface Profileadd {
  usageList?: ProfileInfo[]
  drugCategory?: string
  drugId?:any;
  drugDosageUnit?:string;
  drugName?: string
  genericName?: string
  approvalNumber?: string
  drugIngr?: string
  dosageForm?: string
  mfrId?: any
  drugDosage?: any
  dosageUnit?: string
  minPackQty?: any
  minPackUnit?: string
  packUnit?: string
  price?: any
  isSplit?: any
  splitPrice?: any
  isMinSplit?: string
  stockWarningQty?: any
  conflicts?: string
  recoms?: string
  instrs?: string
}

export interface ProfileInfo {
  usageCode?: string
  singleMin?: any
  singleMax?: any
  dailyMin?: any
  dailyMax?: any
  minAgeYear?: any
  minAgeMonth?: any
  maxAgeYear?: any
  maxAgeMonth?: any
  usageId?:any
}



//查询药品库存明细
export interface GetStockDrugDetailResponse {
     code: string;
     msg: string;
     timestamp: number;
     data: GetStockDrugDetailResponseData;
     ok: boolean;
};

export interface GetStockDrugDetailResponseData {
     totalCount: number;
     list: Array<GetStockDrugDetailResponseList>;
};

export interface GetStockDrugDetailResponseList {
     detailId: number;
     drugId: number;
     storageId: number;
     batchNo: string;
     batchDate: Date;
     stockQty: number;
     stockUnit: string;
     minStockQty: number;
     minStockUnit: string;
     expiryDate: Date;
};



//查询药品库存流水

export interface GetStockDrugTransResponse{
     code: string;
     msg: string;
     timestamp: number;
     data: GetStockDrugTransResponseData;
     ok: boolean;
};

export interface GetStockDrugTransResponseData {
     totalCount: number;
     list: Array<GetStockDrugTransResponseList>;
};

export interface GetStockDrugTransResponseList {
     transNo?: string;
     kcbd?:string;
     transType?: string;
     packUnitText?:any;
     minPackUnitText?:any;
     changeType?: string;
     stockQty?: number;
     stockUnit?: string;
     minStockQty?: number;
     minStockUnit?: string;
     transTime?: Date;
};



